angular.module('jie', ['ionic'])

    .controller('MeController', function ($scope, $http) {

        $scope.signIn = function () {

            $http.post("/jie/me/sign").then(
                function success(response) {
                    if(response.data.code == 0){
                        //window.location.href = "/jie";
                    }else{
                        alert("失败");
                    }
                },
                function error(response){
                    alert("请求失败");
                }
            );
        };
    });